package com.kit.data.kitopeso.tools;

import android.graphics.drawable.Drawable;

import androidx.core.content.ContextCompat;

import com.kit.data.kitopeso.KitoApp;


public class ResUtils {


    public static String s(int id) {


        return KitoApp.getInstance().getContext().getResources().getString(id);
    }

    public static String s(int id, String value) {
        return KitoApp.getInstance().getContext().getResources().getString(id, value);
    }

    public static int c(int id) {
        return ContextCompat.getColor(KitoApp.getInstance(), id);
    }

    public static int d(int id) {
        return KitoApp.getInstance().getContext().getResources().getDimensionPixelSize(id);
    }

    public static Drawable de(int id) {
        return ContextCompat.getDrawable(KitoApp.getInstance(), id);
    }


}
